package com.cart.services;

import com.cart.models.User;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface UserRepository {
    List<User> findAllCustomers();
    User findById(int id);
    User findByUsername(String username);
    void save(User user) throws InvocationTargetException;
    void updatePassword(int id, String password);
    void delete(int id);
    void saveToFile();
}
